[PATCH] [WebAssembly] Use default attributes for intrinsics
authorNikita Popov <npopov@redhat.com>
Mon, 7 Nov 2022 14:50:05 +0000 (15:50 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Mon, 31 Jul 2023 20:16:10 +0000 (21:16 +0100)
commit334d9391c614d798216cdee8f8353c5b5107eb85
tree10c1bb09d773692a7fd667d89eebbda038a3e547
parent9ed73124fac72d4ac37e78c33d42bbadfa6c9e7f
[PATCH] [WebAssembly] Use default attributes for intrinsics

[Ubuntu note: backport this patch according to this llvm release]
From d35fcf0e97e7bb02381506a71e61ec282b292c50 Mon Sep 17 00:00:00 2001

[Ubuntu note: backport this patch according to this llvm release]
From d35fcf0e97e7bb02381506a71e61ec282b292c50 Mon Sep 17 00:00:00 2001
From: Nikita Popov <npopov@redhat.com>
Date: Mon, 7 Nov 2022 15:50:05 +0100
Subject: [PATCH] [WebAssembly] Use default attributes for intrinsics

This switches wasm intrinsics to use default attributes,
i.e. nofree, nosync, nocallback and willreturn. Especially
willreturn will be required to avoid optimization regressions
in the future.

The attributes are omitted from the trapping fptoi intrinsics
(where I assume trapping is considered well-defined, and as such
these aren't willreturn), the throw/rethrow intrinsics (which
will unwind) and the atomic intrinsics (which aren't nosync).

Differential Revision: https://reviews.llvm.org/D137551

Gbp-Pq: Name CVE-2023-29932.patch
llvm/include/llvm/IR/IntrinsicsWebAssembly.td